from django.db import models

class Doctor(models.Model):
    doctor_name = models.CharField(max_length=100)  #  医生姓名
    gender = models.CharField(max_length=10, null=True,blank=True)
    doctor_account = models.CharField(max_length=11)  # 医生账号
    doctor_password = models.CharField(max_length=100)  # 医生密码
    create_time = models.DateTimeField(auto_now_add=True)
    about_me = models.CharField(max_length=255,null=True) # 医生简介
    age = models.IntegerField(null=True)
    education = models.CharField(max_length=100,null=True)
    major = models.CharField(max_length=50,null=True)
    order_money = models.FloatField(null=True)
    # photo = models.CharField(max_length=255,null=True)
    photo = models.ImageField(upload_to='profile_photos/', blank=True, null=True)
    post_level = models.CharField(max_length=100,null=True)
    subject_id = models.CharField(max_length=100,null=True)
    subject_name = models.CharField(max_length=100,null=True)
    university = models.CharField(max_length=100,null=True)  #  医生毕业学校
    work_date = models.DateField(null=True)
